// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=120

//#define COMPILE
#ifdef COMPILE

#include <fstream>
using namespace std;

int main() {
	ifstream in("input.txt");
	int a, b;
	in >> a >> b;
	in.close();

	ofstream out("output.txt");
	if (a > b)
		out << a - b;
	else
		out << b - a;
	out.close();

	return 0;
}
#endif
